package zhtt.war.controller;

import com.gitee.zhtt.entity.JsonResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.websocket.server.PathParam;

/**
 * @author zhaott
 * @date: 2019/10/27 13:18
 **/
@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("/{id}")
    public JsonResponse get(@PathVariable(value="id") String id) {
        System.out.println(id);
        return JsonResponse.success(id);
    }
}
